package com.yjc.springcloud.alibaba.service;

import com.yjc.springcloud.alibaba.service.impl.PaymentServiceImpl;
import com.yjc.springcloud.bean.CommotResult;
import com.yjc.springcloud.bean.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author shkstart
 * @create 2022-08-16 20:14
 */
@FeignClient(value = "nacos-payment-provider", fallback = PaymentServiceImpl.class)
public interface PaymentService {
    @GetMapping(value = "/paymentSQL/{id}")
    public CommotResult<Payment> paymentSQL(@PathVariable("id") Long id);
}
